/*
 * Easy Home Accounting
 * Copyright (c) Martin Kumst 2011
 * License: GNU GPL VERSION 2
 */

package easyhomeaccounting;

public class EHAMoneyMove {
    public static final String dateFormat = "yyyy-MM-dd";
    private String date;
    private String description;
    private int income;
    private int outcome;

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getIncome() {
        return income;
    }

    public void setIncome(int income) {
        this.income = income;
    }

    public int getOutcome() {
        return outcome;
    }

    public void setOutcome(int outcome) {
        this.outcome = outcome;
    }

    /* Vygenerovani pole stringu s vlastnostmi pro vlozeni do tabulky pohybu */
    public String[] genMoveRow() {
        String res[] = new String[4];
        res[0] = date;
        res[1] = description;
        res[2] = String.valueOf(income);
        res[3] = String.valueOf(outcome);
        return res;
    }
}